public class OperateOr {
    public static int p=0;
    public static boolean m1(){
        p=1;
        return true;
    }
    public static boolean m2(){
        p=2;
        return true;
    }
    public static void main(String[] args){
        System.out.println(m1() | m2());
        System.out.println(p);
        System.out.println(m1() || m2());
        System.out.println(p);
        System.out.print("aasdsa");
    }
}